//
//  NewsReaderAppDelegate.h
//  NewsReader
//
//  Created by blacksun on 10-10-17.
//  Copyright __MyCompanyName__ 2010. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SqlUtil.h"
#import "User.h"
#import "URLAddress.h"
#import "ModelParseUtil.h"
#import "ImageDownloader.h"
@class RootViewController;
@class LoadingViewController;

#define kUserFile		@"new_user.data"
#define kUserDefaultKey @"kUserDefaultKey"
#define kDefaultSectionConfig	@"kDefaultSectionConfig"


@interface NewsReaderAppDelegate : NSObject <UIApplicationDelegate> {
    
    UIWindow *window;
    UINavigationController *navigationController;
	User *user;
	RootViewController *rootViewController;
	LoadingViewController *loadingViewController;
	NSOperationQueue *operationQueue;
	BOOL isGFW;
	NSArray *loadSections;
	BOOL networkState;
}
@property (nonatomic, retain) IBOutlet 	LoadingViewController *loadingViewController;
@property (nonatomic, assign) BOOL isGFW;
@property (nonatomic, assign) BOOL networkState;
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UINavigationController *navigationController;
@property (nonatomic, retain) User *user;
@property (nonatomic, retain) IBOutlet RootViewController *rootViewController;
@property (nonatomic, retain) NSOperationQueue *operationQueue;
@property (nonatomic, retain) 	NSArray *loadSections;
-(void)deleteDataThreeDaysAgo;
-(NSString *)dataFilePath:(NSString *)fileName;
-(void)archiverUser:(User *)aUser;
-(void)updateSectionImage:(NSString *) indexStr;

@end

